home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Locrian:WWDCSun:C:Translat.h.
- * Generated using:
- * SOM Precompiler somipc: somc/smemit.c
- * SOM Emitter emith.dll: somc/smmain.c
- */
-
- /*
- *
- * Constants
- *
- */
-
-
- #ifndef SOM_ODTranslation_h
- #define SOM_ODTranslation_h
-
-
- #include <som.h>
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * Define the class name as an object type
- */
- #ifndef ODTranslation
- #define ODTranslation SOMObject
- #endif
- #include <ODObject.h>
-
- /*
- * Start of user-defined types:
- */
- #ifndef ODExtension
- #define ODExtension SOMObject
- #endif /* ODExtension */
- #ifndef ODTypeSet
- #define ODTypeSet SOMObject
- #endif /* ODTypeSet */
- #ifndef ODStorageUnitView
- #define ODStorageUnitView SOMObject
- #endif /* ODStorageUnitView */
-
- /*
- * End of user-defined types.
- */
-
- #define ODTranslation_MajorVersion 0
- #define ODTranslation_MinorVersion 0
-
- /*
- * External name shortening if required
- */
- #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
- #define ODTranslationNewClass c
- #define ODTranslationClassData d
- #define ODTranslationCClassData x
- #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
- /*--------------Migration------------*/
- #define ODTranslation_classObj ODTranslationClassData.classObject
- #define _ODTranslation ODTranslation_classObj
-
- /*
- * Declare the class creation procedure
- */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export on
- #endif
-
- SOMEXTERN SOMClass * SOMLINK ODTranslationNewClass(integer4 somtmajorVersion,
- integer4 somtminorVersion);
-
- /*
- * Declare the class data structure
- */
- SOMEXTERN struct ODTranslationClassDataStructure {
- SOMAny *classObject;
- somMToken InitTranslation;
- somMToken CanTranslate;
- somMToken GetTranslationOf;
- somMToken TranslateView;
- somMToken Translate;
- somMToken GetISOTypeFromPlatformType;
- somMToken GetPlatformTypeFromISOType;
- }
- #ifdef SOM_NO_DATA_EXPORTS
- * ODTranslationGetClassData ( void );
- # undef ODTranslationClassData
- # define ODTranslationClassData (*ODTranslationGetClassData())
- #else
- ODTranslationClassData;
- #endif /* SOM_NO_DATA_EXPORTS */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export off
- #endif
-
-
- /*
- * Declare the C specific class data structure
- */
- SOMEXTERN struct ODTranslationCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } ODTranslationCClassData;
-
- /*
- * New and Renew macros for ODTranslation
- */
- #define ODTranslationNew() \
- ( ( ! (ODTranslationClassData.classObject) && \
- (ODTranslationNewClass(ODTranslation_MajorVersion, ODTranslation_MinorVersion)) ), \
- (_somNew(ODTranslationClassData.classObject)) )
- #define ODTranslationRenew(buf) \
- ( _somRenew(ODTranslationClassData.classObject, buf) )
-
- /*
- * Override method: Purge
- */
- #define ODTranslation_Purge(somSelf,ev,size) \
- ODObject_Purge(somSelf,ev,size)
-
- /*
- * Override method: somInit
- */
- #define ODTranslation_somInit(somSelf) \
- SOMObject_somInit(somSelf)
-
- /*
- * Override method: somUninit
- */
- #define ODTranslation_somUninit(somSelf) \
- SOMObject_somUninit(somSelf)
-
- /*
- * New Method: InitTranslation
- */
- typedef void (SOMLINK *somTD_ODTranslation_InitTranslation)(ODTranslation *somSelf, Environment *ev);
- #define somMD_ODTranslation_InitTranslation "::ODTranslation::InitTranslation"
- #define ODTranslation_InitTranslation(somSelf,ev) \
- (SOM_Resolve(somSelf, ODTranslation, InitTranslation) \
- (somSelf,ev))
- #ifndef SOMGD_InitTranslation
- #if (defined(_InitTranslation) || defined(__InitTranslation))
- #undef _InitTranslation
- #undef __InitTranslation
- #define SOMGD_InitTranslation 1
- #else
- #define _InitTranslation ODTranslation_InitTranslation
- #endif /* _InitTranslation */
- #endif /* SOMGD_InitTranslation */
-
- /*
- * New Method: CanTranslate
- */
- typedef ODTranslateResult (SOMLINK *somTD_ODTranslation_CanTranslate)(ODTranslation *somSelf, Environment *ev,
- ODType fromType);
- #define somMD_ODTranslation_CanTranslate "::ODTranslation::CanTranslate"
- #define ODTranslation_CanTranslate(somSelf,ev,fromType) \
- (SOM_Resolve(somSelf, ODTranslation, CanTranslate) \
- (somSelf,ev,fromType))
- #ifndef SOMGD_CanTranslate
- #if (defined(_CanTranslate) || defined(__CanTranslate))
- #undef _CanTranslate
- #undef __CanTranslate
- #define SOMGD_CanTranslate 1
- #else
- #define _CanTranslate ODTranslation_CanTranslate
- #endif /* _CanTranslate */
- #endif /* SOMGD_CanTranslate */
-
- /*
- * New Method: GetTranslationOf
- */
- typedef ODTypeSet* (SOMLINK *somTD_ODTranslation_GetTranslationOf)(ODTranslation *somSelf, Environment *ev,
- ODType fromType);
- #define somMD_ODTranslation_GetTranslationOf "::ODTranslation::GetTranslationOf"
- #define ODTranslation_GetTranslationOf(somSelf,ev,fromType) \
- (SOM_Resolve(somSelf, ODTranslation, GetTranslationOf) \
- (somSelf,ev,fromType))
- #ifndef SOMGD_GetTranslationOf
- #if (defined(_GetTranslationOf) || defined(__GetTranslationOf))
- #undef _GetTranslationOf
- #undef __GetTranslationOf
- #define SOMGD_GetTranslationOf 1
- #else
- #define _GetTranslationOf ODTranslation_GetTranslationOf
- #endif /* _GetTranslationOf */
- #endif /* SOMGD_GetTranslationOf */
-
- /*
- * New Method: TranslateView
- */
- typedef ODTranslateResult (SOMLINK *somTD_ODTranslation_TranslateView)(ODTranslation *somSelf, Environment *ev,
- ODStorageUnitView* fromView,
- ODStorageUnitView* toView);
- #define somMD_ODTranslation_TranslateView "::ODTranslation::TranslateView"
- #define ODTranslation_TranslateView(somSelf,ev,fromView,toView) \
- (SOM_Resolve(somSelf, ODTranslation, TranslateView) \
- (somSelf,ev,fromView,toView))
- #ifndef SOMGD_TranslateView
- #if (defined(_TranslateView) || defined(__TranslateView))
- #undef _TranslateView
- #undef __TranslateView
- #define SOMGD_TranslateView 1
- #else
- #define _TranslateView ODTranslation_TranslateView
- #endif /* _TranslateView */
- #endif /* SOMGD_TranslateView */
-
- /*
- * New Method: Translate
- */
- typedef ODTranslateResult (SOMLINK *somTD_ODTranslation_Translate)(ODTranslation *somSelf, Environment *ev,
- ODPtr fromData,
- ODULong fromDataSize,
- ODType fromType,
- ODType toType,
- ODPtr* toData,
- ODULong* toDataSize);
- #define somMD_ODTranslation_Translate "::ODTranslation::Translate"
- #define ODTranslation_Translate(somSelf,ev,fromData,fromDataSize,fromType,toType,toData,toDataSize) \
- (SOM_Resolve(somSelf, ODTranslation, Translate) \
- (somSelf,ev,fromData,fromDataSize,fromType,toType,toData,toDataSize))
- #ifndef SOMGD_Translate
- #if (defined(_Translate) || defined(__Translate))
- #undef _Translate
- #undef __Translate
- #define SOMGD_Translate 1
- #else
- #define _Translate ODTranslation_Translate
- #endif /* _Translate */
- #endif /* SOMGD_Translate */
-
- /*
- * New Method: GetISOTypeFromPlatformType
- */
- typedef ODType (SOMLINK *somTD_ODTranslation_GetISOTypeFromPlatformType)(ODTranslation *somSelf, Environment *ev,
- ODPlatformType platformType,
- ODPlatformTypeSpace typeSpace);
- #define somMD_ODTranslation_GetISOTypeFromPlatformType "::ODTranslation::GetISOTypeFromPlatformType"
- #define ODTranslation_GetISOTypeFromPlatformType(somSelf,ev,platformType,typeSpace) \
- (SOM_Resolve(somSelf, ODTranslation, GetISOTypeFromPlatformType) \
- (somSelf,ev,platformType,typeSpace))
- #ifndef SOMGD_GetISOTypeFromPlatformType
- #if (defined(_GetISOTypeFromPlatformType) || defined(__GetISOTypeFromPlatformType))
- #undef _GetISOTypeFromPlatformType
- #undef __GetISOTypeFromPlatformType
- #define SOMGD_GetISOTypeFromPlatformType 1
- #else
- #define _GetISOTypeFromPlatformType ODTranslation_GetISOTypeFromPlatformType
- #endif /* _GetISOTypeFromPlatformType */
- #endif /* SOMGD_GetISOTypeFromPlatformType */
-
- /*
- * New Method: GetPlatformTypeFromISOType
- */
- typedef ODPlatformType (SOMLINK *somTD_ODTranslation_GetPlatformTypeFromISOType)(ODTranslation *somSelf, Environment *ev,
- ODType type);
- #define somMD_ODTranslation_GetPlatformTypeFromISOType "::ODTranslation::GetPlatformTypeFromISOType"
- #define ODTranslation_GetPlatformTypeFromISOType(somSelf,ev,type) \
- (SOM_Resolve(somSelf, ODTranslation, GetPlatformTypeFromISOType) \
- (somSelf,ev,type))
- #ifndef SOMGD_GetPlatformTypeFromISOType
- #if (defined(_GetPlatformTypeFromISOType) || defined(__GetPlatformTypeFromISOType))
- #undef _GetPlatformTypeFromISOType
- #undef __GetPlatformTypeFromISOType
- #define SOMGD_GetPlatformTypeFromISOType 1
- #else
- #define _GetPlatformTypeFromISOType ODTranslation_GetPlatformTypeFromISOType
- #endif /* _GetPlatformTypeFromISOType */
- #endif /* SOMGD_GetPlatformTypeFromISOType */
- #ifndef SOM_DONT_USE_INHERITED_MACROS
- #define ODTranslation_InitObject ODObject_InitObject
- #define ODTranslation_IsInitialized ODObject_IsInitialized
- #define ODTranslation_HasExtension ODObject_HasExtension
- #define ODTranslation_GetExtension ODObject_GetExtension
- #define ODTranslation_ReleaseExtension ODObject_ReleaseExtension
- #define ODTranslation_SubClassResponsibility ODObject_SubClassResponsibility
- #define ODTranslation_somFree SOMObject_somFree
- #define ODTranslation_somGetClass SOMObject_somGetClass
- #define ODTranslation_somGetClassName SOMObject_somGetClassName
- #define ODTranslation_somGetSize SOMObject_somGetSize
- #define ODTranslation_somIsA SOMObject_somIsA
- #define ODTranslation_somIsInstanceOf SOMObject_somIsInstanceOf
- #define ODTranslation_somRespondsTo SOMObject_somRespondsTo
- #define ODTranslation_somDispatchV SOMObject_somDispatchV
- #define ODTranslation_somDispatchL SOMObject_somDispatchL
- #define ODTranslation_somDispatchA SOMObject_somDispatchA
- #define ODTranslation_somDispatchD SOMObject_somDispatchD
- #define ODTranslation_somDispatch SOMObject_somDispatch
- #define ODTranslation_somClassDispatch SOMObject_somClassDispatch
- #define ODTranslation_somPrintSelf SOMObject_somPrintSelf
- #define ODTranslation_somDumpSelf SOMObject_somDumpSelf
- #define ODTranslation_somDumpSelfInt SOMObject_somDumpSelfInt
- #endif /* SOM_DONT_USE_INHERITED_MACROS */
-
- #endif /* SOM_ODTranslation_h */
-